package cn.tangg.factory.simple_factory;

public class Test {
    public static void main(String[] args) {

        // 使用的时候，只和抽象工厂接口打交道
        Shape circle = ShapeFactory.getShape("C");
        circle.draw();

        Shape rectange = ShapeFactory.getShape("R");
        rectange.draw();

        Shape square = ShapeFactory.getShape("S");
        square.draw();

    }
}
